.haloe-timeline-wrapper {

  .haloe-timeline {
    list-style: none;
    margin: 0;
    padding: 0;

    &-item {
      margin: 0 !important;
      padding: 0 0 12px 0;
      list-style: none;
      position: relative;

      &-tail {
        height: calc(~"100% - 23px");
        border-left: 1px solid @border-color-base;
        position: absolute;
        left: 6px;
        top:18px;
      }

      &-pending &-tail {
        display: none;
      }

      &-head {
        width: 13px;
        height: 13px;
        background-color: @color-bg-card;
        border-radius: 50%;
        border: 1px solid transparent;
        position: absolute;

        &-blue {
          border-color: @primary-color;
          color: @primary-color;
        }

        &-red {
          border-color: @error-color;
          color: @error-color;
        }

        &-green {
          border-color: @success-color;
          color: @success-color;
        }
      }

      &-head-custom {
        width: 40px;
        height: auto;
        margin-top: 6px;
        padding: 3px 0;
        text-align: center;
        line-height: 1;
        border: 0;
        border-radius: 0;
        font-size: @font-size-base;
        position: absolute;
        left: -13px;
        transform: translateY(-50%);
      }

      &-content {
        padding: 1px 1px 10px 24px;
        font-size: @font-size-base;
        position: relative;
        top: -3px;
      }

      &:last-child .haloe-timeline-item-tail {
        display: none;
      }
    }

    &.haloe-timeline-pending .haloe-timeline-item:nth-last-of-type(2) {

      .haloe-timeline-item-tail {
        border-left: 1px dotted @border-color-base;
      }

      .haloe-timeline-item-content {
        min-height: 48px;
      }
    }
  }

  &.haloe-timeline-wrapper-horizontal {
    display: flex;

    .haloe-timeline-scroller-wrapper {
      width:500px;
      overflow:hidden;
    }

    .haloe-timeline.haloe-timeline-horizontal {
      position: relative;
      left:0;
      padding-bottom:20px;
      width:max-content;
      white-space: nowrap;
      overflow: hidden;
      z-index:-10;
      display: flex;

      .haloe-timeline-item {
        padding: 0 12px;
        padding-top: 15px;
        width:max-content;
        position: relative;

        .haloe-timeline-item-tail {
          border-left:0;
          width:100%;
          border-top:1px solid @border-color-base;
          left:0;
          top:50%;
        }

        .haloe-timeline-item-head {
          top:50%;
          left:50%;
          transform: translateY(-50%);
        }

        .haloe-timeline-item-content {
          padding:0;
          position: relative;
          top:20px;
          left:-1px;
          z-index:10;
        }

        &:last-child .haloe-timeline-item-tail{
          display: block;
        }
      }

      &.haloe-timeline-pending .haloe-timeline-item:nth-last-of-type(2) {

        .haloe-timeline-item-content {
          min-height: auto;
        }
      }
    }
  }
}
